package service.impl;

import dao.CommentDao;
import dao.impl.CommentDaoImpl;
import entity.Comment;
import service.CommentService;

import java.util.List;

public class CommentServiceImpl implements CommentService {

    CommentDao commentDao=new CommentDaoImpl();

    @Override
    public List<Comment> getCommentList(int bid) {
        return commentDao.getCommentList(bid);
    }

    @Override
    public int addComment(Comment comment) {
        return commentDao.addComment(comment);
    }
}
